package com.qingcheng.controller.order;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.service.order.CategoryReportService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务测试
 * @author 岳剑飞
 * @Company http://www.ithiema.com
 */
@Component
public class OrderTask {
    @Reference
    private CategoryReportService categoryReportService;

   // @Scheduled(cron = "* * * * * ?")
    public void orderTimeOutLogic(){
        System.out.println("............");
    }

   // @Scheduled(cron = "0 * * * * ?")
    public void createCategoryReportData(){
        System.out.println("createcategoryReportData");
        categoryReportService.createData();
    }

}
